home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / cmp.z / cmp
Text File  |  1998-10-20  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. ccccmmmmpppp((((1111))))                                                                  ccccmmmmpppp((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _cccc_mmmm_pppp - compare two files
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _cccc_mmmm_pppp [ _----_llll ] [ _----_ssss ] _f_i_l_e_1 _f_i_l_e_2 [ _s_k_i_p_1 ] [ _s_k_i_p_2 ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      The two files are compared.  (If _f_i_l_e_1 is _----, the standard input is used.)
  16.      Under default options, _cccc_mmmm_pppp makes no comment if the files are the same; if
  17.      they differ, it announces the byte and line number at which the
  18.      difference occurred.  If one file is an initial subsequence of the other,
  19.      that fact is noted.  _s_k_i_p_1 and _s_k_i_p_2 are initial byte offsets into _f_i_l_e_1
  20.      and _f_i_l_e_2 respectively, and may be either octal or decimal; a leading _0000
  21.      denotes octal.
  22.  
  23.      Options:
  24.  
  25.       _----_llll  Print the byte number (decimal) and the differing bytes (octal) for
  26.           each difference.
  27.  
  28.       _----_ssss  Print nothing for differing files; return codes only.
  29.  
  30. FFFFIIIILLLLEEEESSSS
  31.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_cccc_oooo_rrrr_eeee_...._aaaa_bbbb_iiii
  32.           language-specific message file (See _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5).)
  33.  
  34. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  35.      comm(1), diff(1).
  36.  
  37. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  38.      Exit code _0000 is returned for identical files, _1111 for different files, and _2222
  39.      for an inaccessible or missing argument.
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.